package com.secsbrain.cloudconsole.dal.model;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotations.IdType;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 *
 * 服务器申请表
 *
 */
@TableName(value = "work_server_apply")
public class WorkServerApply implements Serializable {

	@TableField(exist = false)
	private static final long serialVersionUID = 1L;

	/** 主键 */
	@TableId(type = IdType.AUTO)
	private Long id;

	/** 工单ID，一对一的关系 */
	@TableField(value = "sheet_id")
	private Long sheetId;

	/** 主机标识，如kira-PC */
	@TableField(value = "host_name")
	private String hostName;

	/** 应用环境 */
	private String env;

	/** 镜像名称，如CentOS6.52C4G */
	@TableField(value = "image_name")
	private String imageName;

	/** 到期时间 */
	@TableField(value = "due_date")
	private Date dueDate;
	
	@TableField(exist = false)
	private String dueDateStr;
	
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getSheetId() {
		return this.sheetId;
	}

	public void setSheetId(Long sheetId) {
		this.sheetId = sheetId;
	}

	public String getHostName() {
		return this.hostName;
	}

	public void setHostName(String hostName) {
		this.hostName = hostName;
	}

	public String getEnv() {
		return this.env;
	}

	public void setEnv(String env) {
		this.env = env;
	}

	public String getImageName() {
		return this.imageName;
	}

	public void setImageName(String imageName) {
		this.imageName = imageName;
	}

	public Date getDueDate() {
		return this.dueDate;
	}

	public void setDueDate(Date dueDate) {
		this.dueDate = dueDate;
	}

	public String getDueDateStr() {
		return dueDateStr;
	}

	public void setDueDateStr(String dueDateStr) {
		this.dueDateStr = dueDateStr;
	}
	
}
